#include "engine.h"
#include "core/xml.h"
#include "everyday.h"


CEveryday::CEveryday()
{

}

CEveryday::~CEveryday()
{

}


bool	CEveryday::Init(HWND hwnd, int w, int h)
{
	m_width = w;
	m_height = h;

/*
	CXml xml;
	CXmlNode *root = xml.openXML(L"test.xml");
	if( root )
	{
		CXmlNode *child = root->getChild();
		const wchar *at = child->getAttiribute(L"abc");
		const wchar *at1 = child->getAttiribute(L"test");
	}
*/
	m_engine = new IR_Engine();
	bool ret = m_engine->Create(hwnd, w, h);





	return true;
}

bool	CEveryday::Loop()
{
	m_engine->Render();

	return true;
}